<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/> ~ <bean:message key="Assistants.list"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<script LANGUAGE="JavaScript" type="text/javascript" src="js/AnchorPosition.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/PopupWindow.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/date.js"></script>
<script LANGUAGE="JavaScript" type="text/javascript" src="js/CalendarPopup.js"></script>
<script language="javascript" type="text/javascript" src="js/util.js"></script>
<script language="javascript" type="text/javascript">
function fnc_validarForma(forma){
		var bol_retVal = true;
		var str_errores = "";
		
		var int_numeroVa = Trim(forma.int_responsable.value);
		if( int_numeroVa == "" ){
			str_errores += " - <bean:message key='Assistants.assistantCode'/> <bean:message key='errors.required'/>\n";
		}else if( !esNumero(int_numeroVa,0) || parseInt(int_numeroVa) < 0 ){
			str_errores += " - <bean:message key='Assistants.assistantCode'/> <bean:message key='errors.integer'/>\n";
		}		
		if(Trim(forma.str_responsable.value)==""){
			str_errores += " - <bean:message key='Assistants.name'/> <bean:message key='errors.required'/>\n";
		}		
		if( str_errores != "" ){
			bol_retVal = false;
			alert( " <bean:message key='Application.Error(s)'/> : \n" + str_errores );
		}
		return bol_retVal;
	}
<logic:present name="req_msg">
	alert("<bean:write name='req_msg'/>");
</logic:present>
</script>
</head>
<body>
	<table cellpadding="0" cellspacing="0" class="formas">
		<tr> 
		    <td> 
			    <table cellpadding="0" cellspacing="0" class="barraNavegacion">
					<tr>
						<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
								<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
								<html:link action="/draft_list.do?action=listDrafts" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.Draft"/></html:link>
								<html:link action="/draft_edit?action=editDraft" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.draftEdit"/></html:link>
								<html:link action="/assistant_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Assistants.list"/></html:link>
						</td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="0" class="titulo">
	        		<tr> 
	          			<td class="iconos_imgs"> <a href="#"><img src="images/icn_correo.gif" alt="Correo-e" width="18" height="18" border="0"></a></td>
	          			<td class="txt_titulo"><bean:message key="Assistants.list"/></td>
	        		</tr>
	      		</table>
	      		<table cellpadding="0" cellspacing="2" class="info_formas">				
					<tr>
						<td colspan="4" class="formas-encabezado"><bean:message key="Document.draftData"/></td>
					</tr>					
	        		<tr> 
						<td colspan="2">
							<table cellpadding="0" cellspacing="2" class="info_titulo">
								<tr> 
									<td  class=""><strong><bean:message key="Document.draft"/></strong></td>
									<td class=""><bean:write name="bean_minuta" property="int_tk"/></td>
								</tr>
								<tr> 
									<td class=""><strong><bean:message key="Document.content"/></strong></td>
									<td class=""><bean:write name="bean_minuta" property="str_asunto"/></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr> 
          				<td>&nbsp;</td>
        			</tr>
        			<tr> 
          				<td class="formas-encabezado"><bean:message key="Assistants.documentData"/></td>
        			</tr>
        			<tr> 
          				<td>
          					<html:form action="/assistant_save" onsubmit="return fnc_validarForma(this);">            			
          						<table cellpadding="0" cellspacing="2" class="info_formas">          						
            						<tr> 
                						<td class=""><bean:message key="Assistants.code"/></td>
                						<td class=""><html:text property="int_responsable" readonly="true" size="7"/>&nbsp;<a href="javascript:var win = centerPopUp( 'owner_search.do', 'OwnerSearch', 430,270 , 'YES' );"><html:img page="/images/usuario.gif" border="0"/></a></td>
              						</tr>
					              	<tr> 
					                	<td class=""><bean:message key="TeacherList.Name"/></td>
					                	<td class=""><html:text property="str_responsable" readonly="true" indexed="4" size="60"/></td>
					              	</tr>
					              	<tr> 
								  		<td colspan="4"> 
					            			<div align="center"> 
						                		<html:submit property="btn_aceptar"><bean:message key="Application.Accept" /></html:submit>
						                    	<input type="reset" onclick="location.href='<html:rewrite action="/assistant_list" />';" value="<bean:message key='Application.Cancel'/>"/>
					                    	</div>
								    	</td>
					              	</tr>
					              	<tr> 
					                	<td colspan="2"> <div align="center"></div></td>
					              	</tr>
					        	</table>
					    	</html:form>
						</td>					          			
					</tr>
				</table>
			</td>
        </tr>
	</table>  
</body>
</html:html>
